.AI{
    width: 100vw;
    height: 100vh;
    background-color:#f7f7f7;
    position: relative;
    padding: 80px 0;
}

.AI-top{
    width: 100%;
    height: 79px;
    padding: 0 10px 0 10px;
    background-color: #ffffff;
    position: absolute;
    line-height: 79px;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    top: 0;
}

.AI-top>.AI-top-span{
    float: left;
    margin-top: 8px;
}

.AI-middle{
    width: 100%;
    height: calc(100vh - 79px - 46px);
    overflow-y: auto; /* 修改 overflow 属性 */
    padding: 10px; /* 新增 padding */
    box-sizing: border-box; /* 新增 box-sizing */
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* 新增 gap */
}

.AI-bottom{
    width: 100%;
    height: 46px;
    position: absolute;
    bottom: 0;
    background-color: #ffffff;
    text-align: center;
    display: flex;
    justify-content: space-around;
    padding-top: 7px;
}

.AI-bottom>input{
    width: 246px;
    height: 33px;
    border-radius: 33px;
    font-size: 14px;
    background-color: #f9f9f9;
    border: 0;
    padding-left: 15px;
    outline: none; /* 新增样式 */
}

.historical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 100;
    display: none;
}

.historical-overlay.show {
    display: block;
}

.historical-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200; /* 确保历史记录在最高层 */
}